package com.zxx.casserver.modules.dictionary.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zxx.casserver.modules.dictionary.entity.DictionaryDO;
import com.zxx.casserver.modules.dictionary.entity.DictionaryVO;

/**
 * 字典项服务接口层
 *
 * @author zhoukai
 * @date 2020/5/8 16:25
 */
public interface IDictionaryService extends IService<DictionaryDO> {

    /**
     * 根据条件分页查询接口
     *
     * @param dictionaryVO
     * @return 返回查询的值
     * @author zhoukai
     * @date 2020/5/8 16:51
     */
    IPage<DictionaryDO> search(DictionaryVO dictionaryVO);

    /**
     * 保存字典项
     *
     * @param dictionaryVO
     * @return 返回保存的信息
     * @author zhoukai
     * @date 2020/5/8 17:25
     */
    DictionaryDO saveDictionary(DictionaryVO dictionaryVO);

    /**
     * 更新字典项
     *
     * @param dictionaryVO
     * @return 返回更新后的信息
     * @author zhoukai
     * @date 2020/5/8 17:25
     */
    DictionaryDO updateDictionary(DictionaryVO dictionaryVO);

    /**
     * 根据传入的ids 批量删除
     *
     * @param dictionaryVO
     * @return 返回删除成功或者失败
     * @author zhoukai
     * @date 2020/5/8 18:36
     */
    boolean batchDelete(DictionaryVO dictionaryVO);
}
